//
//  UITextField+CZAddition.m
//  ComfortTrip
//
//  Created by 钱小树 on 2017/1/2.
//  Copyright © 2017年 钱小树. All rights reserved.
//

#import "UITextField+CZAddition.h"

@implementation UITextField (CZAddition)
+ (instancetype)cz_textFieldWithText:(NSString *)text placeHolder:(NSString* )placeHolder fontSize:(CGFloat)fontSize color:(UIColor *)color {
    UITextField *textfield = [[self alloc] init];
    
    textfield.text = text;
    textfield.font = [UIFont systemFontOfSize:fontSize];
    textfield.textColor = color;
    textfield.placeholder = placeHolder;
    
    [textfield sizeToFit];
    return textfield;
}
@end
